package com.crm.model.entity.returnMoney;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RmExamineRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RmExamineRecordExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRecordIdIsNull() {
            addCriterion("record_id is null");
            return (Criteria) this;
        }

        public Criteria andRecordIdIsNotNull() {
            addCriterion("record_id is not null");
            return (Criteria) this;
        }

        public Criteria andRecordIdEqualTo(String value) {
            addCriterion("record_id =", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotEqualTo(String value) {
            addCriterion("record_id <>", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdGreaterThan(String value) {
            addCriterion("record_id >", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdGreaterThanOrEqualTo(String value) {
            addCriterion("record_id >=", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdLessThan(String value) {
            addCriterion("record_id <", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdLessThanOrEqualTo(String value) {
            addCriterion("record_id <=", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdLike(String value) {
            addCriterion("record_id like", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotLike(String value) {
            addCriterion("record_id not like", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdIn(List<String> values) {
            addCriterion("record_id in", values, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotIn(List<String> values) {
            addCriterion("record_id not in", values, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdBetween(String value1, String value2) {
            addCriterion("record_id between", value1, value2, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotBetween(String value1, String value2) {
            addCriterion("record_id not between", value1, value2, "recordId");
            return (Criteria) this;
        }

        public Criteria andExamineIdIsNull() {
            addCriterion("examine_id is null");
            return (Criteria) this;
        }

        public Criteria andExamineIdIsNotNull() {
            addCriterion("examine_id is not null");
            return (Criteria) this;
        }

        public Criteria andExamineIdEqualTo(String value) {
            addCriterion("examine_id =", value, "examineId");
            return (Criteria) this;
        }

        public Criteria andExamineIdNotEqualTo(String value) {
            addCriterion("examine_id <>", value, "examineId");
            return (Criteria) this;
        }

        public Criteria andExamineIdGreaterThan(String value) {
            addCriterion("examine_id >", value, "examineId");
            return (Criteria) this;
        }

        public Criteria andExamineIdGreaterThanOrEqualTo(String value) {
            addCriterion("examine_id >=", value, "examineId");
            return (Criteria) this;
        }

        public Criteria andExamineIdLessThan(String value) {
            addCriterion("examine_id <", value, "examineId");
            return (Criteria) this;
        }

        public Criteria andExamineIdLessThanOrEqualTo(String value) {
            addCriterion("examine_id <=", value, "examineId");
            return (Criteria) this;
        }

        public Criteria andExamineIdLike(String value) {
            addCriterion("examine_id like", value, "examineId");
            return (Criteria) this;
        }

        public Criteria andExamineIdNotLike(String value) {
            addCriterion("examine_id not like", value, "examineId");
            return (Criteria) this;
        }

        public Criteria andExamineIdIn(List<String> values) {
            addCriterion("examine_id in", values, "examineId");
            return (Criteria) this;
        }

        public Criteria andExamineIdNotIn(List<String> values) {
            addCriterion("examine_id not in", values, "examineId");
            return (Criteria) this;
        }

        public Criteria andExamineIdBetween(String value1, String value2) {
            addCriterion("examine_id between", value1, value2, "examineId");
            return (Criteria) this;
        }

        public Criteria andExamineIdNotBetween(String value1, String value2) {
            addCriterion("examine_id not between", value1, value2, "examineId");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleTypeIsNull() {
            addCriterion("examine_people_type is null");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleTypeIsNotNull() {
            addCriterion("examine_people_type is not null");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleTypeEqualTo(Short value) {
            addCriterion("examine_people_type =", value, "examinePeopleType");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleTypeNotEqualTo(Short value) {
            addCriterion("examine_people_type <>", value, "examinePeopleType");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleTypeGreaterThan(Short value) {
            addCriterion("examine_people_type >", value, "examinePeopleType");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleTypeGreaterThanOrEqualTo(Short value) {
            addCriterion("examine_people_type >=", value, "examinePeopleType");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleTypeLessThan(Short value) {
            addCriterion("examine_people_type <", value, "examinePeopleType");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleTypeLessThanOrEqualTo(Short value) {
            addCriterion("examine_people_type <=", value, "examinePeopleType");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleTypeIn(List<Short> values) {
            addCriterion("examine_people_type in", values, "examinePeopleType");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleTypeNotIn(List<Short> values) {
            addCriterion("examine_people_type not in", values, "examinePeopleType");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleTypeBetween(Short value1, Short value2) {
            addCriterion("examine_people_type between", value1, value2, "examinePeopleType");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleTypeNotBetween(Short value1, Short value2) {
            addCriterion("examine_people_type not between", value1, value2, "examinePeopleType");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdIsNull() {
            addCriterion("examine_people_id is null");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdIsNotNull() {
            addCriterion("examine_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdEqualTo(String value) {
            addCriterion("examine_people_id =", value, "examinePeopleId");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdNotEqualTo(String value) {
            addCriterion("examine_people_id <>", value, "examinePeopleId");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdGreaterThan(String value) {
            addCriterion("examine_people_id >", value, "examinePeopleId");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("examine_people_id >=", value, "examinePeopleId");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdLessThan(String value) {
            addCriterion("examine_people_id <", value, "examinePeopleId");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("examine_people_id <=", value, "examinePeopleId");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdLike(String value) {
            addCriterion("examine_people_id like", value, "examinePeopleId");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdNotLike(String value) {
            addCriterion("examine_people_id not like", value, "examinePeopleId");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdIn(List<String> values) {
            addCriterion("examine_people_id in", values, "examinePeopleId");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdNotIn(List<String> values) {
            addCriterion("examine_people_id not in", values, "examinePeopleId");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdBetween(String value1, String value2) {
            addCriterion("examine_people_id between", value1, value2, "examinePeopleId");
            return (Criteria) this;
        }

        public Criteria andExaminePeopleIdNotBetween(String value1, String value2) {
            addCriterion("examine_people_id not between", value1, value2, "examinePeopleId");
            return (Criteria) this;
        }

        public Criteria andExamineStateIsNull() {
            addCriterion("examine_state is null");
            return (Criteria) this;
        }

        public Criteria andExamineStateIsNotNull() {
            addCriterion("examine_state is not null");
            return (Criteria) this;
        }

        public Criteria andExamineStateEqualTo(Short value) {
            addCriterion("examine_state =", value, "examineState");
            return (Criteria) this;
        }

        public Criteria andExamineStateNotEqualTo(Short value) {
            addCriterion("examine_state <>", value, "examineState");
            return (Criteria) this;
        }

        public Criteria andExamineStateGreaterThan(Short value) {
            addCriterion("examine_state >", value, "examineState");
            return (Criteria) this;
        }

        public Criteria andExamineStateGreaterThanOrEqualTo(Short value) {
            addCriterion("examine_state >=", value, "examineState");
            return (Criteria) this;
        }

        public Criteria andExamineStateLessThan(Short value) {
            addCriterion("examine_state <", value, "examineState");
            return (Criteria) this;
        }

        public Criteria andExamineStateLessThanOrEqualTo(Short value) {
            addCriterion("examine_state <=", value, "examineState");
            return (Criteria) this;
        }

        public Criteria andExamineStateIn(List<Short> values) {
            addCriterion("examine_state in", values, "examineState");
            return (Criteria) this;
        }

        public Criteria andExamineStateNotIn(List<Short> values) {
            addCriterion("examine_state not in", values, "examineState");
            return (Criteria) this;
        }

        public Criteria andExamineStateBetween(Short value1, Short value2) {
            addCriterion("examine_state between", value1, value2, "examineState");
            return (Criteria) this;
        }

        public Criteria andExamineStateNotBetween(Short value1, Short value2) {
            addCriterion("examine_state not between", value1, value2, "examineState");
            return (Criteria) this;
        }

        public Criteria andExamineTimeIsNull() {
            addCriterion("examine_time is null");
            return (Criteria) this;
        }

        public Criteria andExamineTimeIsNotNull() {
            addCriterion("examine_time is not null");
            return (Criteria) this;
        }

        public Criteria andExamineTimeEqualTo(Date value) {
            addCriterion("examine_time =", value, "examineTime");
            return (Criteria) this;
        }

        public Criteria andExamineTimeNotEqualTo(Date value) {
            addCriterion("examine_time <>", value, "examineTime");
            return (Criteria) this;
        }

        public Criteria andExamineTimeGreaterThan(Date value) {
            addCriterion("examine_time >", value, "examineTime");
            return (Criteria) this;
        }

        public Criteria andExamineTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("examine_time >=", value, "examineTime");
            return (Criteria) this;
        }

        public Criteria andExamineTimeLessThan(Date value) {
            addCriterion("examine_time <", value, "examineTime");
            return (Criteria) this;
        }

        public Criteria andExamineTimeLessThanOrEqualTo(Date value) {
            addCriterion("examine_time <=", value, "examineTime");
            return (Criteria) this;
        }

        public Criteria andExamineTimeIn(List<Date> values) {
            addCriterion("examine_time in", values, "examineTime");
            return (Criteria) this;
        }

        public Criteria andExamineTimeNotIn(List<Date> values) {
            addCriterion("examine_time not in", values, "examineTime");
            return (Criteria) this;
        }

        public Criteria andExamineTimeBetween(Date value1, Date value2) {
            addCriterion("examine_time between", value1, value2, "examineTime");
            return (Criteria) this;
        }

        public Criteria andExamineTimeNotBetween(Date value1, Date value2) {
            addCriterion("examine_time not between", value1, value2, "examineTime");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkIsNull() {
            addCriterion("examine_remark is null");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkIsNotNull() {
            addCriterion("examine_remark is not null");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkEqualTo(String value) {
            addCriterion("examine_remark =", value, "examineRemark");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkNotEqualTo(String value) {
            addCriterion("examine_remark <>", value, "examineRemark");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkGreaterThan(String value) {
            addCriterion("examine_remark >", value, "examineRemark");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("examine_remark >=", value, "examineRemark");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkLessThan(String value) {
            addCriterion("examine_remark <", value, "examineRemark");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkLessThanOrEqualTo(String value) {
            addCriterion("examine_remark <=", value, "examineRemark");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkLike(String value) {
            addCriterion("examine_remark like", value, "examineRemark");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkNotLike(String value) {
            addCriterion("examine_remark not like", value, "examineRemark");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkIn(List<String> values) {
            addCriterion("examine_remark in", values, "examineRemark");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkNotIn(List<String> values) {
            addCriterion("examine_remark not in", values, "examineRemark");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkBetween(String value1, String value2) {
            addCriterion("examine_remark between", value1, value2, "examineRemark");
            return (Criteria) this;
        }

        public Criteria andExamineRemarkNotBetween(String value1, String value2) {
            addCriterion("examine_remark not between", value1, value2, "examineRemark");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIsNull() {
            addCriterion("company_id is null");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIsNotNull() {
            addCriterion("company_id is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyIdEqualTo(String value) {
            addCriterion("company_id =", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotEqualTo(String value) {
            addCriterion("company_id <>", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdGreaterThan(String value) {
            addCriterion("company_id >", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdGreaterThanOrEqualTo(String value) {
            addCriterion("company_id >=", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLessThan(String value) {
            addCriterion("company_id <", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLessThanOrEqualTo(String value) {
            addCriterion("company_id <=", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLike(String value) {
            addCriterion("company_id like", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotLike(String value) {
            addCriterion("company_id not like", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIn(List<String> values) {
            addCriterion("company_id in", values, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotIn(List<String> values) {
            addCriterion("company_id not in", values, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdBetween(String value1, String value2) {
            addCriterion("company_id between", value1, value2, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotBetween(String value1, String value2) {
            addCriterion("company_id not between", value1, value2, "companyId");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNull() {
            addCriterion("delete_status is null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNotNull() {
            addCriterion("delete_status is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusEqualTo(Short value) {
            addCriterion("delete_status =", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotEqualTo(Short value) {
            addCriterion("delete_status <>", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThan(Short value) {
            addCriterion("delete_status >", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("delete_status >=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThan(Short value) {
            addCriterion("delete_status <", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThanOrEqualTo(Short value) {
            addCriterion("delete_status <=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIn(List<Short> values) {
            addCriterion("delete_status in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotIn(List<Short> values) {
            addCriterion("delete_status not in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusBetween(Short value1, Short value2) {
            addCriterion("delete_status between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotBetween(Short value1, Short value2) {
            addCriterion("delete_status not between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}